/**
 * 安卓白金英雄坛制作组
 * <br>
 * 文件名：NpcBattleData.java
 * <br>
 * 创建时间：2014-8-16 下午12:48:09
 * <br>
 * 所属项目：GmudEX
 * <br>
 *
 * @author 12548
 *         <br>
 */
package lostland.gmud.exv2.data;

import android.util.SparseIntArray;

import lostland.gmud.exv2.GameConstants;

/**
 * 类名：NpcBattleData <br>
 * 说明：Npc的战斗属性
 *
 * @author 12548
 */
public class NpcBattleData {

	public int hit_bouns = 0;
	public int atk_bouns = 0;
	public int def_bouns = 0;
	public int str_bouns = 0;
	public int agi_bouns = 0;
	public int wxg_bouns = 0;
	public int bon_bouns = 0;
	public String hurtpf = "";
	SparseIntArray sz = new SparseIntArray();
	public int dz = 0;
	SparseIntArray buff = new SparseIntArray();
	public int drug1 = 0;
	public int drug2 = 0;
	public double temp_dmg_multiplier = 1.0;
	public int evd_bouns = 0;
	public boolean stuntAvaliable = true; // 可以发动绝招

	public int gauge = 0; // 怒气值

	public boolean alreadyRespawned = false; //已复活过


	public void refresh() {
		setData(0, 0, 0, 0, 0, 0, 0, "", 0, 0, 0, 1.0,
				0);
		sz.clear();
		buff.clear();
		gauge = GameConstants.INITIAL_GAUGE;
		alreadyRespawned = false;
	}


	/**
	 * 设置属性
	 */
	private void setData(int hit_bouns, int atk_bouns, int def_bouns, int str_bouns, int agi_bouns,
	                     int wxg_bouns,
	                     int bon_bouns, String hurtpf, int dz, int drug1, int drug2,
	                     double temp_dmg_multiplier, int evd_bouns) {
		this.hit_bouns = hit_bouns;
		this.atk_bouns = atk_bouns;
		this.def_bouns = def_bouns;
		this.str_bouns = str_bouns;
		this.agi_bouns = agi_bouns;
		this.wxg_bouns = wxg_bouns;
		this.bon_bouns = bon_bouns;
		this.hurtpf = hurtpf;
// this.sz = sz;
		this.dz = dz;
// this.buff = buff;
		this.drug1 = drug1;
		this.drug2 = drug2;
		this.temp_dmg_multiplier = temp_dmg_multiplier;
		this.evd_bouns = evd_bouns;
	}
}
